<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>可扩展超文本标记语言</title>
</head>
<body>
<script type="text/javascript">
    function compare(a, b) {
        if (a < b) {
            alert('A is less than B');
        } else if (a > b) {
            alert('A is greater than B');
        } else {
            alert('A is equal to b');
        }
    }
</script>
<script type="text/javascript">
    function compare(a, b) {
        if (a &lt; b) {
            alert('A is less than B');
        } else if (a &gt; b) {
            alert('A is greater than B');
        } else {
            alert('A is equal to b');
        }
    }
</script>
<script type="text/javascript"><![CDATA[
function compare(a, b) {
    if (a < b) {
        alert('A is less than B');
    } else if (a > b) {
        alert('A is greater than B');
    } else {
        alert('A is equal to b');
    }
}
]]></script>
<script type="text/javascript">//<![CDATA[
function compare(a, b) {
    if (a < b) {
        alert('A is less than B');
    } else if (a > b) {
        alert('A is greater than B');
    } else {
        alert('A is equal to b');
    }
}
//]]></script>
</body>
</html>